package com.migo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.migo.dao.MaterialPublicDao;
import com.migo.entity.MaterialPublicEntity;
import com.migo.service.MaterialPublicService;



@Service("materialPublicService")
public class MaterialPublicServiceImpl implements MaterialPublicService {
	@Autowired
	private MaterialPublicDao materialPublicDao;
	
	@Override
	public MaterialPublicEntity queryObject(String id){
		return materialPublicDao.queryObject(id);
	}
	
	@Override
	public List<MaterialPublicEntity> queryList(Map<String, Object> map){
		return materialPublicDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return materialPublicDao.queryTotal(map);
	}
	
	@Override
	public void save(MaterialPublicEntity materialPublic){
		materialPublicDao.save(materialPublic);
	}
	
	@Override
	public void update(MaterialPublicEntity materialPublic){
		materialPublicDao.update(materialPublic);
	}
	
	@Override
	public void delete(String id){
		materialPublicDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		materialPublicDao.deleteBatch(ids);
	}
	
}
